home *** CD-ROM | disk | FTP | other *** search
-
- /* A Bison parser, made from ./ldgram.y with Bison version GNU Bison version 1.22
- */
-
- #define YYBISON 1 /* Identify Bison output. */
-
- #define INT 258
- #define NAME 259
- #define PLUSEQ 260
- #define MINUSEQ 261
- #define MULTEQ 262
- #define DIVEQ 263
- #define LSHIFTEQ 264
- #define RSHIFTEQ 265
- #define ANDEQ 266
- #define OREQ 267
- #define OROR 268
- #define ANDAND 269
- #define EQ 270
- #define NE 271
- #define LE 272
- #define GE 273
- #define LSHIFT 274
- #define RSHIFT 275
- #define UNARY 276
- #define END 277
- #define ALIGN_K 278
- #define BLOCK 279
- #define QUAD 280
- #define LONG 281
- #define SHORT 282
- #define BYTE 283
- #define SECTIONS 284
- #define SIZEOF_HEADERS 285
- #define OUTPUT_FORMAT 286
- #define FORCE_COMMON_ALLOCATION 287
- #define OUTPUT_ARCH 288
- #define INCLUDE 289
- #define MEMORY 290
- #define DEFSYMEND 291
- #define NOLOAD 292
- #define DSECT 293
- #define COPY 294
- #define INFO 295
- #define OVERLAY 296
- #define DEFINED 297
- #define TARGET_K 298
- #define SEARCH_DIR 299
- #define MAP 300
- #define ENTRY 301
- #define SIZEOF 302
- #define NEXT 303
- #define ADDR 304
- #define STARTUP 305
- #define HLL 306
- #define SYSLIB 307
- #define FLOAT 308
- #define NOFLOAT 309
- #define ORIGIN 310
- #define FILL 311
- #define LENGTH 312
- #define CREATE_OBJECT_SYMBOLS 313
- #define INPUT 314
- #define GROUP 315
- #define OUTPUT 316
- #define CONSTRUCTORS 317
- #define ALIGNMOD 318
- #define AT 319
- #define PROVIDE 320
- #define CHIP 321
- #define LIST 322
- #define SECT 323
- #define ABSOLUTE 324
- #define LOAD 325
- #define NEWLINE 326
- #define ENDWORD 327
- #define ORDER 328
- #define NAMEWORD 329
- #define FORMAT 330
- #define PUBLIC 331
- #define BASE 332
- #define ALIAS 333
- #define TRUNCATE 334
- #define REL 335
- #define INPUT_SCRIPT 336
- #define INPUT_MRI_SCRIPT 337
- #define INPUT_DEFSYM 338
-
- #line 21 "./ldgram.y"
-
- /*
-
- */
-
- #define DONTDECLARE_MALLOC
-
- #include "bfd.h"
- #include "sysdep.h"
- #include "bfdlink.h"
- #include "ld.h"
- #include "ldexp.h"
- #include "ldver.h"
- #include "ldlang.h"
- #include "ldemul.h"
- #include "ldfile.h"
- #include "ldmisc.h"
- #include "ldmain.h"
- #include "mri.h"
- #include "ldlex.h"
-
- static int typebits;
-
- lang_memory_region_type *region;
-
-
- char *current_file;
- boolean ldgram_want_filename = true;
- boolean had_script = false;
- boolean force_make_executable = false;
-
- boolean ldgram_in_script = false;
- boolean ldgram_had_equals = false;
-
-
- #define ERROR_NAME_MAX 20
- static char *error_names[ERROR_NAME_MAX];
- static int error_index;
- #define PUSH_ERROR(x) if (error_index < ERROR_NAME_MAX) error_names[error_index] = x; error_index++;
- #define POP_ERROR() error_index--;
-
- #line 62 "./ldgram.y"
- typedef union {
- bfd_vma integer;
- char *name;
- int token;
- union etree_union *etree;
- } YYSTYPE;
-
- #ifndef YYLTYPE
- typedef
- struct yyltype
- {
- int timestamp;
- int first_line;
- int first_column;
- int last_line;
- int last_column;
- char *text;
- }
- yyltype;
-
- #define YYLTYPE yyltype
- #endif
-
- #include <stdio.h>
-
- #ifndef __cplusplus
- #ifndef __STDC__
- #define const
- #endif
- #endif
-
-
-
- #define YYFINAL 372
- #define YYFLAG -32768
- #define YYNTBASE 107
-
- #define YYTRANSLATE(x) ((unsigned)(x) <= 338 ? yytranslate[x] : 168)
-
- static const char yytranslate[] = { 0,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 105, 2, 2, 2, 33, 20, 2, 36,
- 102, 31, 29, 100, 30, 2, 32, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 15, 101, 23,
- 9, 24, 14, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 103, 2, 104, 19, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 44, 18, 45, 106, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 1, 2, 3, 4, 5,
- 6, 7, 8, 10, 11, 12, 13, 16, 17, 21,
- 22, 25, 26, 27, 28, 34, 35, 37, 38, 39,
- 40, 41, 42, 43, 46, 47, 48, 49, 50, 51,
- 52, 53, 54, 55, 56, 57, 58, 59, 60, 61,
- 62, 63, 64, 65, 66, 67, 68, 69, 70, 71,
- 72, 73, 74, 75, 76, 77, 78, 79, 80, 81,
- 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
- 92, 93, 94, 95, 96, 97, 98, 99
- };
-
- #if YYDEBUG != 0
- static const short yyprhs[] = { 0,
- 0, 3, 6, 9, 11, 12, 17, 18, 21, 25,
- 26, 29, 34, 36, 38, 41, 43, 48, 53, 57,
- 60, 65, 69, 74, 79, 84, 87, 90, 93, 98,
- 103, 106, 109, 110, 114, 117, 118, 120, 124, 126,
- 130, 131, 134, 137, 138, 140, 142, 144, 146, 148,
- 150, 152, 154, 159, 164, 169, 174, 183, 188, 190,
- 195, 196, 202, 207, 208, 214, 216, 220, 223, 228,
- 231, 234, 235, 240, 243, 245, 249, 251, 252, 257,
- 258, 264, 265, 271, 274, 276, 278, 280, 282, 287,
- 292, 295, 297, 298, 300, 302, 304, 306, 308, 311,
- 312, 314, 316, 318, 320, 322, 324, 326, 328, 330,
- 332, 336, 340, 347, 349, 350, 356, 359, 363, 364,
- 365, 373, 377, 381, 385, 386, 391, 396, 400, 404,
- 406, 411, 415, 416, 418, 420, 421, 424, 427, 431,
- 436, 439, 442, 445, 449, 453, 457, 461, 465, 469,
- 473, 477, 481, 485, 489, 493, 497, 501, 505, 509,
- 515, 519, 523, 528, 530, 532, 537, 542, 547, 552,
- 557, 559, 564, 565, 566, 567, 568, 569, 570, 585,
- 587, 589, 591, 593, 595, 596, 599, 605, 607, 612,
- 615
- };
-
- static const short yyrhs[] = { 97,
- 118, 0, 98, 111, 0, 99, 109, 0, 4, 0,
- 0, 110, 4, 9, 157, 0, 0, 112, 113, 0,
- 113, 114, 87, 0, 0, 82, 157, 0, 82, 157,
- 100, 157, 0, 4, 0, 83, 0, 89, 115, 0,
- 88, 0, 92, 4, 9, 157, 0, 92, 4, 100,
- 157, 0, 92, 4, 157, 0, 91, 4, 0, 84,
- 4, 100, 157, 0, 84, 4, 157, 0, 84, 4,
- 9, 157, 0, 37, 4, 9, 157, 0, 79, 4,
- 9, 157, 0, 85, 117, 0, 86, 116, 0, 90,
- 4, 0, 94, 4, 100, 4, 0, 94, 4, 100,
- 3, 0, 93, 157, 0, 95, 3, 0, 0, 115,
- 100, 4, 0, 115, 4, 0, 0, 4, 0, 116,
- 100, 4, 0, 4, 0, 117, 100, 4, 0, 0,
- 119, 120, 0, 120, 121, 0, 0, 142, 0, 125,
- 0, 149, 0, 150, 0, 152, 0, 154, 0, 127,
- 0, 101, 0, 59, 36, 4, 102, 0, 60, 36,
- 108, 102, 0, 77, 36, 108, 102, 0, 47, 36,
- 4, 102, 0, 47, 36, 4, 100, 4, 100, 4,
- 102, 0, 49, 36, 4, 102, 0, 48, 0, 75,
- 36, 124, 102, 0, 0, 76, 122, 36, 124, 102,
- 0, 61, 36, 108, 102, 0, 0, 50, 108, 123,
- 120, 35, 0, 4, 0, 124, 100, 4, 0, 124,
- 4, 0, 43, 44, 126, 45, 0, 126, 159, 0,
- 126, 127, 0, 0, 62, 36, 4, 102, 0, 140,
- 139, 0, 4, 0, 128, 141, 4, 0, 4, 0,
- 0, 103, 130, 128, 104, 0, 0, 4, 131, 36,
- 128, 102, 0, 0, 31, 132, 36, 128, 102, 0,
- 140, 139, 0, 74, 0, 101, 0, 78, 0, 129,
- 0, 136, 36, 157, 102, 0, 72, 36, 157, 102,
- 0, 134, 133, 0, 133, 0, 0, 134, 0, 39,
- 0, 40, 0, 41, 0, 42, 0, 9, 155, 0,
- 0, 5, 0, 6, 0, 7, 0, 8, 0, 10,
- 0, 11, 0, 12, 0, 13, 0, 101, 0, 100,
- 0, 4, 9, 155, 0, 4, 138, 155, 0, 81,
- 36, 4, 9, 155, 102, 0, 100, 0, 0, 51,
- 44, 144, 143, 45, 0, 143, 144, 0, 143, 100,
- 144, 0, 0, 0, 4, 145, 148, 15, 146, 141,
- 147, 0, 71, 9, 155, 0, 73, 9, 155, 0,
- 36, 4, 102, 0, 0, 66, 36, 108, 102, 0,
- 67, 36, 151, 102, 0, 67, 36, 102, 0, 151,
- 141, 108, 0, 108, 0, 68, 36, 153, 102, 0,
- 153, 141, 108, 0, 0, 69, 0, 70, 0, 0,
- 156, 157, 0, 30, 157, 0, 36, 157, 102, 0,
- 64, 36, 157, 102, 0, 105, 157, 0, 29, 157,
- 0, 106, 157, 0, 157, 31, 157, 0, 157, 32,
- 157, 0, 157, 33, 157, 0, 157, 29, 157, 0,
- 157, 30, 157, 0, 157, 27, 157, 0, 157, 28,
- 157, 0, 157, 21, 157, 0, 157, 22, 157, 0,
- 157, 25, 157, 0, 157, 26, 157, 0, 157, 23,
- 157, 0, 157, 24, 157, 0, 157, 20, 157, 0,
- 157, 19, 157, 0, 157, 18, 157, 0, 157, 14,
- 157, 15, 157, 0, 157, 17, 157, 0, 157, 16,
- 157, 0, 58, 36, 4, 102, 0, 3, 0, 46,
- 0, 63, 36, 4, 102, 0, 65, 36, 4, 102,
- 0, 85, 36, 157, 102, 0, 37, 36, 157, 102,
- 0, 38, 36, 157, 102, 0, 4, 0, 80, 36,
- 157, 102, 0, 0, 0, 0, 0, 0, 0, 4,
- 160, 166, 158, 161, 44, 162, 135, 45, 163, 167,
- 137, 164, 141, 0, 53, 0, 54, 0, 55, 0,
- 56, 0, 57, 0, 0, 157, 15, 0, 157, 36,
- 165, 102, 15, 0, 15, 0, 36, 165, 102, 15,
- 0, 24, 4, 0, 0
- };
-
- #endif
-
- #if YYDEBUG != 0
- static const short yyrline[] = { 0,
- 115, 117, 118, 122, 125, 127, 134, 139, 144, 146,
- 149, 151, 152, 155, 158, 159, 160, 162, 164, 166,
- 168, 170, 172, 174, 176, 178, 179, 180, 182, 184,
- 186, 188, 190, 193, 195, 196, 199, 202, 205, 208,
- 212, 217, 223, 225, 230, 232, 233, 234, 235, 236,
- 237, 238, 239, 241, 243, 245, 248, 250, 252, 254,
- 255, 257, 259, 261, 262, 265, 269, 272, 277, 281,
- 283, 284, 287, 290, 293, 296, 300, 305, 310, 311,
- 315, 316, 320, 323, 325, 329, 330, 335, 336, 341,
- 351, 353, 356, 358, 361, 364, 366, 368, 372, 380,
- 385, 388, 390, 392, 394, 396, 398, 400, 405, 405,
- 409, 414, 422, 429, 430, 433, 437, 439, 440, 444,
- 446, 449, 455, 464, 469, 473, 478, 480, 484, 487,
- 492, 494, 497, 500, 503, 508, 510, 513, 516, 518,
- 520, 522, 524, 527, 529, 531, 533, 535, 537, 539,
- 541, 543, 545, 547, 549, 551, 553, 555, 557, 559,
- 561, 563, 565, 567, 569, 572, 574, 576, 578, 580,
- 582, 587, 589, 592, 594, 596, 600, 600, 607, 609,
- 611, 612, 613, 614, 615, 619, 621, 622, 623, 626,
- 629
- };
-
- static const char * const yytname[] = { "$","error","$illegal.","INT","NAME",
- "PLUSEQ","MINUSEQ","MULTEQ","DIVEQ","'='","LSHIFTEQ","RSHIFTEQ","ANDEQ","OREQ",
- "'?'","':'","OROR","ANDAND","'|'","'^'","'&'","EQ","NE","'<'","'>'","LE","GE",
- "LSHIFT","RSHIFT","'+'","'-'","'*'","'/'","'%'","UNARY","END","'('","ALIGN_K",
- "BLOCK","QUAD","LONG","SHORT","BYTE","SECTIONS","'{'","'}'","SIZEOF_HEADERS",
- "OUTPUT_FORMAT","FORCE_COMMON_ALLOCATION","OUTPUT_ARCH","INCLUDE","MEMORY","DEFSYMEND",
- "NOLOAD","DSECT","COPY","INFO","OVERLAY","DEFINED","TARGET_K","SEARCH_DIR","MAP",
- "ENTRY","SIZEOF","NEXT","ADDR","STARTUP","HLL","SYSLIB","FLOAT","NOFLOAT","ORIGIN",
- "FILL","LENGTH","CREATE_OBJECT_SYMBOLS","INPUT","GROUP","OUTPUT","CONSTRUCTORS",
- "ALIGNMOD","AT","PROVIDE","CHIP","LIST","SECT","ABSOLUTE","LOAD","NEWLINE","ENDWORD",
- "ORDER","NAMEWORD","FORMAT","PUBLIC","BASE","ALIAS","TRUNCATE","REL","INPUT_SCRIPT",
- "INPUT_MRI_SCRIPT","INPUT_DEFSYM","','","';'","')'","'['","']'","'!'","'~'",
- "file","filename","defsym_expr","@1","mri_script_file","@2","mri_script_lines",
- "mri_script_command","ordernamelist","mri_load_name_list","mri_abs_name_list",
- "script_file","@3","ifile_list","ifile_p1","@4","@5","input_list","sections",
- "sec_or_group_p1","statement_anywhere","file_NAME_list","input_section_spec",
- "@6","@7","@8","statement","statement_list","statement_list_opt","length","fill_opt",
- "assign_op","end","assignment","opt_comma","memory","memory_spec_list","memory_spec",
- "@9","origin_spec","length_spec","attributes_opt","startup","high_level_library",
- "high_level_library_NAME_list","low_level_library","low_level_library_NAME_list",
- "floating_point_support","mustbe_exp","@10","exp","opt_at","section","@11","@12",
- "@13","@14","@15","type","opt_exp_with_type","memspec_opt",""
- };
- #endif
-
- static const short yyr1[] = { 0,
- 107, 107, 107, 108, 110, 109, 112, 111, 113, 113,
- 114, 114, 114, 114, 114, 114, 114, 114, 114, 114,
- 114, 114, 114, 114, 114, 114, 114, 114, 114, 114,
- 114, 114, 114, 115, 115, 115, 116, 116, 117, 117,
- 119, 118, 120, 120, 121, 121, 121, 121, 121, 121,
- 121, 121, 121, 121, 121, 121, 121, 121, 121, 121,
- 122, 121, 121, 123, 121, 124, 124, 124, 125, 126,
- 126, 126, 127, 127, 128, 128, 129, 130, 129, 131,
- 129, 132, 129, 133, 133, 133, 133, 133, 133, 133,
- 134, 134, 135, 135, 136, 136, 136, 136, 137, 137,
- 138, 138, 138, 138, 138, 138, 138, 138, 139, 139,
- 140, 140, 140, 141, 141, 142, 143, 143, 143, 145,
- 144, 146, 147, 148, 148, 149, 150, 150, 151, 151,
- 152, 153, 153, 154, 154, 156, 155, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 158, 158, 160, 161, 162, 163, 164, 159, 165,
- 165, 165, 165, 165, 165, 166, 166, 166, 166, 167,
- 167
- };
-
- static const short yyr2[] = { 0,
- 2, 2, 2, 1, 0, 4, 0, 2, 3, 0,
- 2, 4, 1, 1, 2, 1, 4, 4, 3, 2,
- 4, 3, 4, 4, 4, 2, 2, 2, 4, 4,
- 2, 2, 0, 3, 2, 0, 1, 3, 1, 3,
- 0, 2, 2, 0, 1, 1, 1, 1, 1, 1,
- 1, 1, 4, 4, 4, 4, 8, 4, 1, 4,
- 0, 5, 4, 0, 5, 1, 3, 2, 4, 2,
- 2, 0, 4, 2, 1, 3, 1, 0, 4, 0,
- 5, 0, 5, 2, 1, 1, 1, 1, 4, 4,
- 2, 1, 0, 1, 1, 1, 1, 1, 2, 0,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 3, 3, 6, 1, 0, 5, 2, 3, 0, 0,
- 7, 3, 3, 3, 0, 4, 4, 3, 3, 1,
- 4, 3, 0, 1, 1, 0, 2, 2, 3, 4,
- 2, 2, 2, 3, 3, 3, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 5,
- 3, 3, 4, 1, 1, 4, 4, 4, 4, 4,
- 1, 4, 0, 0, 0, 0, 0, 0, 14, 1,
- 1, 1, 1, 1, 0, 2, 5, 1, 4, 2,
- 0
- };
-
- static const short yydefact[] = { 0,
- 41, 7, 5, 1, 44, 2, 10, 3, 0, 42,
- 8, 0, 0, 0, 0, 59, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 134, 135, 0, 61,
- 0, 0, 52, 43, 46, 51, 0, 45, 47, 48,
- 49, 50, 13, 0, 0, 0, 14, 0, 0, 0,
- 16, 36, 0, 0, 0, 0, 0, 0, 0, 0,
- 101, 102, 103, 104, 136, 105, 106, 107, 108, 136,
- 72, 0, 0, 4, 64, 0, 0, 0, 0, 0,
- 0, 0, 133, 0, 0, 0, 0, 110, 109, 74,
- 0, 0, 164, 171, 0, 0, 0, 0, 0, 165,
- 0, 0, 0, 0, 0, 0, 0, 11, 0, 39,
- 26, 37, 27, 15, 28, 20, 0, 31, 0, 32,
- 9, 6, 111, 0, 112, 0, 0, 0, 44, 120,
- 119, 0, 0, 0, 0, 0, 128, 130, 115, 115,
- 66, 0, 0, 0, 0, 0, 0, 142, 138, 0,
- 0, 0, 0, 0, 0, 0, 0, 141, 143, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 22, 0, 0, 35, 0, 0, 0, 19, 0,
- 137, 174, 69, 71, 70, 0, 56, 58, 0, 125,
- 0, 53, 54, 63, 73, 126, 114, 127, 0, 131,
- 0, 68, 0, 60, 0, 55, 136, 24, 25, 139,
- 0, 0, 0, 0, 0, 0, 0, 0, 162, 161,
- 159, 158, 157, 151, 152, 155, 156, 153, 154, 149,
- 150, 147, 148, 144, 145, 146, 12, 23, 21, 40,
- 38, 34, 17, 18, 30, 29, 0, 0, 65, 0,
- 0, 116, 0, 117, 129, 132, 67, 62, 0, 169,
- 170, 163, 166, 140, 167, 168, 0, 188, 185, 0,
- 173, 0, 0, 0, 118, 113, 160, 180, 181, 182,
- 183, 184, 0, 186, 185, 0, 175, 0, 124, 0,
- 115, 0, 0, 0, 0, 57, 136, 0, 189, 0,
- 0, 176, 122, 0, 121, 187, 172, 93, 136, 77,
- 82, 95, 96, 97, 98, 0, 85, 87, 86, 78,
- 88, 92, 94, 0, 0, 0, 123, 0, 0, 0,
- 0, 91, 177, 0, 84, 0, 0, 0, 75, 115,
- 191, 0, 115, 115, 90, 79, 0, 0, 100, 89,
- 81, 83, 76, 190, 136, 178, 99, 115, 179, 0,
- 0, 0
- };
-
- static const short yydefgoto[] = { 370,
- 75, 8, 9, 6, 7, 11, 59, 114, 113, 111,
- 4, 5, 10, 34, 85, 129, 142, 35, 126, 36,
- 350, 331, 341, 338, 339, 332, 333, 334, 335, 366,
- 70, 90, 37, 357, 38, 201, 131, 200, 301, 315,
- 261, 39, 40, 139, 41, 140, 42, 123, 124, 150,
- 297, 195, 257, 305, 318, 351, 368, 293, 281, 359
- };
-
- static const short yypact[] = { -33,
- -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 36, 354,
- 355, 53, 84, 23, 41,-32768, 63, 83, 58, 71,
- 76, 104, 109, 120, 125, 126,-32768,-32768, 128,-32768,
- 130, 131,-32768,-32768,-32768,-32768, 54,-32768,-32768,-32768,
- -32768,-32768,-32768, 164, 167, 249,-32768, 170, 171, 178,
- -32768,-32768, 181, 183, 184, 249, 195, 199, 122, 249,
- -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
- -32768, 206, 209,-32768,-32768, 210, 211, 83, 83, 212,
- 83, 11,-32768, 216, 185, 83, 218,-32768,-32768,-32768,
- 214, 215,-32768,-32768, 249, 249, 249, 190, 191,-32768,
- 197, 198, 200, 201, 204, 249, 249, 587, 143,-32768,
- 135,-32768, 142, 3,-32768,-32768, 154, 614, 144,-32768,
- -32768, 614,-32768, 249,-32768, 7, -63, 145,-32768,-32768,
- -32768, 149, 155, 159, 165, 166,-32768,-32768, -32, -17,
- -32768, 8, 216, 168, 257, 249, 249,-32768,-32768, 2,
- 249, 249, 265, 267, 249, 269, 249,-32768,-32768, 249,
- 249, 249, 249, 249, 249, 249, 249, 249, 249, 249,
- 249, 249, 249, 249, 249, 249, 249, 249, 249, 249,
- 249, 614, 270, 271,-32768, 272, 249, 249, 614, 146,
- 614, 84,-32768,-32768,-32768, 273,-32768,-32768, 318, 244,
- -2,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 83,-32768,
- 83,-32768, 277,-32768, 37,-32768,-32768, 614, 614,-32768,
- 440, 460, 180, 186, 480, 202, 500, 697, 633, 652,
- 712, 726, 739, 750, 750, 26, 26, 26, 26, 15,
- 15, 49, 49,-32768,-32768,-32768, 614, 614, 614,-32768,
- -32768,-32768, 614, 614,-32768,-32768, 226, 193,-32768, 279,
- 282,-32768, 210,-32768,-32768,-32768,-32768,-32768, 203,-32768,
- -32768,-32768,-32768,-32768,-32768,-32768, 249,-32768, 140, 674,
- 219, 302, 207, 237,-32768,-32768, 614,-32768,-32768,-32768,
- -32768,-32768, 208,-32768, 19, 280,-32768, 213,-32768, 308,
- 220, 303, 217, 249, 281,-32768,-32768, 248,-32768, 309,
- 527,-32768,-32768, 314,-32768,-32768,-32768, 261,-32768, 338,
- -32768,-32768,-32768,-32768,-32768, 290,-32768,-32768,-32768,-32768,
- -32768,-32768, 261, 283, 291, 54,-32768, 293, 294, 249,
- 332,-32768,-32768, 249,-32768, 332, 332, 547,-32768, -62,
- 313, 567, -16, 51,-32768,-32768, 334, 336, 343,-32768,
- -32768,-32768,-32768,-32768,-32768,-32768,-32768, 220,-32768, 341,
- 356,-32768
- };
-
- static const short yypgoto[] = {-32768,
- -73,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
- -32768,-32768, 228,-32768,-32768,-32768, 227,-32768,-32768, 234,
- -187,-32768,-32768,-32768,-32768, 30,-32768,-32768,-32768,-32768,
- -32768, 35, -282, -136,-32768,-32768, -184,-32768,-32768,-32768,
- -32768,-32768,-32768,-32768,-32768,-32768,-32768, -69,-32768, -46,
- -32768,-32768,-32768,-32768,-32768,-32768,-32768, 77,-32768,-32768
- };
-
-
- #define YYLAST 783
-
-
- static const short yytable[] = { 108,
- 125, 130, 209, 211, 133, 134, 185, 136, 138, 118,
- 192, 212, 144, 122, 74, 160, 264, 161, 162, 163,
- 164, 165, 166, 167, 168, 169, 170, 171, 172, 173,
- 174, 175, 176, 177, 178, 336, 196, 207, 197, 12,
- 212, 356, 262, 174, 175, 176, 177, 178, 148, 149,
- 336, 193, 172, 173, 174, 175, 176, 177, 178, 158,
- 159, 60, 182, 1, 2, 3, 71, 207, 23, 208,
- 189, 288, 289, 290, 291, 292, 72, 191, 285, 176,
- 177, 178, 207, 207, 210, 361, 74, 32, 61, 62,
- 63, 64, 65, 66, 67, 68, 69, 263, 73, 218,
- 219, 76, 186, 220, 221, 222, 77, 213, 225, 214,
- 227, 78, 137, 228, 229, 230, 231, 232, 233, 234,
- 235, 236, 237, 238, 239, 240, 241, 242, 243, 244,
- 245, 246, 247, 248, 249, 265, 213, 266, 268, 79,
- 253, 254, 93, 94, 80, 93, 94, 269, 255, 256,
- 207, 180, 362, 88, 89, 81, 93, 94, 353, 354,
- 82, 83, 187, 84, 308, 86, 87, 91, 95, 96,
- 92, 95, 96, 109, 110, 97, 98, 99, 97, 98,
- 99, 112, 95, 96, 115, 100, 116, 117, 100, 97,
- 98, 99, 288, 289, 290, 291, 292, 101, 119, 100,
- 101, 120, 102, 103, 104, 102, 103, 104, 121, 127,
- 280, 101, 128, 130, 132, 135, 102, 103, 104, 141,
- 143, 145, 146, 147, 105, 151, 152, 105, 93, 94,
- 287, 369, 153, 154, 183, 155, 156, 313, 105, 157,
- 278, 184, 181, 190, 106, 107, 198, 106, 107, 337,
- 202, 93, 94, 188, 95, 96, 203, 311, 106, 107,
- 204, 279, 98, 99, 320, 217, 205, 206, 223, 216,
- 224, 100, 226, 250, 251, 252, 258, 95, 96, 260,
- 267, 272, 283, 101, 97, 98, 99, 273, 102, 103,
- 104, 321, 282, 348, 100, 367, 284, 352, 296, 322,
- 323, 324, 325, 275, 286, 298, 101, 300, 299, 302,
- 105, 102, 103, 104, 306, 304, 307, 309, 310, 207,
- 314, 13, 319, 316, 312, 340, 344, 343, 346, 347,
- 106, 107, 326, 105, 327, 349, 358, 363, 328, 364,
- 371, 32, 61, 62, 63, 64, 65, 66, 67, 68,
- 69, 365, 259, 106, 107, 372, 199, 13, 43, 194,
- 14, 329, 342, 330, 15, 16, 17, 18, 19, 215,
- 345, 303, 0, -80, 0, 0, 20, 21, 22, 23,
- 0, 0, 0, 24, 25, 26, 27, 28, 0, 0,
- 0, 44, 29, 30, 31, 0, 14, 0, 32, 0,
- 15, 16, 17, 18, 19, 0, 0, 0, 0, 0,
- 0, 0, 20, 21, 22, 23, 0, 0, 33, 24,
- 25, 26, 27, 28, 0, 0, 0, 0, 29, 30,
- 31, 0, 0, 45, 32, 0, 46, 47, 48, 49,
- 50, -33, 51, 52, 53, 54, 55, 56, 57, 58,
- 0, 0, 0, 160, 33, 161, 162, 163, 164, 165,
- 166, 167, 168, 169, 170, 171, 172, 173, 174, 175,
- 176, 177, 178, 160, 0, 161, 162, 163, 164, 165,
- 166, 167, 168, 169, 170, 171, 172, 173, 174, 175,
- 176, 177, 178, 160, 0, 161, 162, 163, 164, 165,
- 166, 167, 168, 169, 170, 171, 172, 173, 174, 175,
- 176, 177, 178, 160, 0, 161, 162, 163, 164, 165,
- 166, 167, 168, 169, 170, 171, 172, 173, 174, 175,
- 176, 177, 178, 0, 0, 0, 0, 0, 0, 0,
- 160, 270, 161, 162, 163, 164, 165, 166, 167, 168,
- 169, 170, 171, 172, 173, 174, 175, 176, 177, 178,
- 160, 271, 161, 162, 163, 164, 165, 166, 167, 168,
- 169, 170, 171, 172, 173, 174, 175, 176, 177, 178,
- 160, 274, 161, 162, 163, 164, 165, 166, 167, 168,
- 169, 170, 171, 172, 173, 174, 175, 176, 177, 178,
- 160, 276, 161, 162, 163, 164, 165, 166, 167, 168,
- 169, 170, 171, 172, 173, 174, 175, 176, 177, 178,
- 0, 0, 0, 0, 0, 0, 0, 160, 317, 161,
- 162, 163, 164, 165, 166, 167, 168, 169, 170, 171,
- 172, 173, 174, 175, 176, 177, 178, 0, 355, 162,
- 163, 164, 165, 166, 167, 168, 169, 170, 171, 172,
- 173, 174, 175, 176, 177, 178, 0, 0, 360, 163,
- 164, 165, 166, 167, 168, 169, 170, 171, 172, 173,
- 174, 175, 176, 177, 178, 0, 179, 160, 294, 161,
- 162, 163, 164, 165, 166, 167, 168, 169, 170, 171,
- 172, 173, 174, 175, 176, 177, 178, 0, 0, 295,
- 160, 277, 161, 162, 163, 164, 165, 166, 167, 168,
- 169, 170, 171, 172, 173, 174, 175, 176, 177, 178,
- 164, 165, 166, 167, 168, 169, 170, 171, 172, 173,
- 174, 175, 176, 177, 178, 165, 166, 167, 168, 169,
- 170, 171, 172, 173, 174, 175, 176, 177, 178, 166,
- 167, 168, 169, 170, 171, 172, 173, 174, 175, 176,
- 177, 178, 168, 169, 170, 171, 172, 173, 174, 175,
- 176, 177, 178
- };
-
- static const short yycheck[] = { 46,
- 70, 4, 139, 140, 78, 79, 4, 81, 82, 56,
- 4, 4, 86, 60, 4, 14, 201, 16, 17, 18,
- 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
- 29, 30, 31, 32, 33, 318, 100, 100, 102, 4,
- 4, 104, 45, 29, 30, 31, 32, 33, 95, 96,
- 333, 45, 27, 28, 29, 30, 31, 32, 33, 106,
- 107, 9, 109, 97, 98, 99, 44, 100, 62, 102,
- 117, 53, 54, 55, 56, 57, 36, 124, 263, 31,
- 32, 33, 100, 100, 102, 102, 4, 81, 5, 6,
- 7, 8, 9, 10, 11, 12, 13, 100, 36, 146,
- 147, 44, 100, 102, 151, 152, 36, 100, 155, 102,
- 157, 36, 102, 160, 161, 162, 163, 164, 165, 166,
- 167, 168, 169, 170, 171, 172, 173, 174, 175, 176,
- 177, 178, 179, 180, 181, 209, 100, 211, 102, 36,
- 187, 188, 3, 4, 36, 3, 4, 217, 3, 4,
- 100, 9, 102, 100, 101, 36, 3, 4, 346, 347,
- 36, 36, 9, 36, 301, 36, 36, 4, 29, 30,
- 4, 29, 30, 4, 4, 36, 37, 38, 36, 37,
- 38, 4, 29, 30, 4, 46, 4, 4, 46, 36,
- 37, 38, 53, 54, 55, 56, 57, 58, 4, 46,
- 58, 3, 63, 64, 65, 63, 64, 65, 87, 4,
- 257, 58, 4, 4, 4, 4, 63, 64, 65, 4,
- 36, 4, 9, 9, 85, 36, 36, 85, 3, 4,
- 277, 368, 36, 36, 100, 36, 36, 307, 85, 36,
- 15, 100, 100, 100, 105, 106, 102, 105, 106, 319,
- 102, 3, 4, 100, 29, 30, 102, 304, 105, 106,
- 102, 36, 37, 38, 4, 9, 102, 102, 4, 102,
- 4, 46, 4, 4, 4, 4, 4, 29, 30, 36,
- 4, 102, 4, 58, 36, 37, 38, 102, 63, 64,
- 65, 31, 100, 340, 46, 365, 15, 344, 80, 39,
- 40, 41, 42, 102, 102, 4, 58, 71, 102, 102,
- 85, 63, 64, 65, 102, 36, 9, 15, 102, 100,
- 73, 4, 9, 15, 44, 36, 36, 45, 36, 36,
- 105, 106, 72, 85, 74, 4, 24, 4, 78, 4,
- 0, 81, 5, 6, 7, 8, 9, 10, 11, 12,
- 13, 9, 35, 105, 106, 0, 129, 4, 4, 126,
- 43, 101, 333, 103, 47, 48, 49, 50, 51, 143,
- 336, 295, -1, 36, -1, -1, 59, 60, 61, 62,
- -1, -1, -1, 66, 67, 68, 69, 70, -1, -1,
- -1, 37, 75, 76, 77, -1, 43, -1, 81, -1,
- 47, 48, 49, 50, 51, -1, -1, -1, -1, -1,
- -1, -1, 59, 60, 61, 62, -1, -1, 101, 66,
- 67, 68, 69, 70, -1, -1, -1, -1, 75, 76,
- 77, -1, -1, 79, 81, -1, 82, 83, 84, 85,
- 86, 87, 88, 89, 90, 91, 92, 93, 94, 95,
- -1, -1, -1, 14, 101, 16, 17, 18, 19, 20,
- 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
- 31, 32, 33, 14, -1, 16, 17, 18, 19, 20,
- 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
- 31, 32, 33, 14, -1, 16, 17, 18, 19, 20,
- 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
- 31, 32, 33, 14, -1, 16, 17, 18, 19, 20,
- 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
- 31, 32, 33, -1, -1, -1, -1, -1, -1, -1,
- 14, 102, 16, 17, 18, 19, 20, 21, 22, 23,
- 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
- 14, 102, 16, 17, 18, 19, 20, 21, 22, 23,
- 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
- 14, 102, 16, 17, 18, 19, 20, 21, 22, 23,
- 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
- 14, 102, 16, 17, 18, 19, 20, 21, 22, 23,
- 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
- -1, -1, -1, -1, -1, -1, -1, 14, 102, 16,
- 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
- 27, 28, 29, 30, 31, 32, 33, -1, 102, 17,
- 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
- 28, 29, 30, 31, 32, 33, -1, -1, 102, 18,
- 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
- 29, 30, 31, 32, 33, -1, 100, 14, 15, 16,
- 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
- 27, 28, 29, 30, 31, 32, 33, -1, -1, 36,
- 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
- 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
- 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
- 29, 30, 31, 32, 33, 20, 21, 22, 23, 24,
- 25, 26, 27, 28, 29, 30, 31, 32, 33, 21,
- 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
- 32, 33, 23, 24, 25, 26, 27, 28, 29, 30,
- 31, 32, 33
- };
- /* -*-C-*- Note some compilers choke on comments on `#line' lines. */
- #line 3 "/usr/unsupported/lib/bison.simple"
-
- /* Skeleton output parser for bison,
- Copyright (C) 1984, 1989, 1990 Bob Corbett and Richard Stallman
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 1, or (at your option)
- any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-
-
- #ifndef alloca
- #ifdef __GNUC__
- #define alloca __builtin_alloca
- #else /* not GNU C. */
- #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
- #include <alloca.h>
- #else /* not sparc */
- #if defined (MSDOS) && !defined (__TURBOC__)
- #include <malloc.h>
- #else /* not MSDOS, or __TURBOC__ */
- #if defined(_AIX)
- #include <malloc.h>
- #pragma alloca
- #else /* not MSDOS, __TURBOC__, or _AIX */
- #ifdef __hpux
- #ifdef __cplusplus
- extern "C" {
- void *alloca (unsigned int);
- };
- #else /* not __cplusplus */
- void *alloca ();
- #endif /* not __cplusplus */
- #endif /* __hpux */
- #endif /* not _AIX */
- #endif /* not MSDOS, or __TURBOC__ */
- #endif /* not sparc. */
- #endif /* not GNU C. */
- #endif /* alloca not defined. */
-
- /* This is the parser code that is written into each bison parser
- when the %semantic_parser declaration is not specified in the grammar.
- It was written by Richard Stallman by simplifying the hairy parser
- used when %semantic_parser is specified. */
-
- /* Note: there must be only one dollar sign in this file.
- It is replaced by the list of actions, each action
- as one case of the switch. */
-
- #define yyerrok (yyerrstatus = 0)
- #define yyclearin (yychar = YYEMPTY)
- #define YYEMPTY -2
- #define YYEOF 0
- #define YYACCEPT return(0)
- #define YYABORT return(1)
- #define YYERROR goto yyerrlab1
- /* Like YYERROR except do call yyerror.
- This remains here temporarily to ease the
- transition to the new meaning of YYERROR, for GCC.
- Once GCC version 2 has supplanted version 1, this can go. */
- #define YYFAIL goto yyerrlab
- #define YYRECOVERING() (!!yyerrstatus)
- #define YYBACKUP(token, value) \
- do \
- if (yychar == YYEMPTY && yylen == 1) \
- { yychar = (token), yylval = (value); \
- yychar1 = YYTRANSLATE (yychar); \
- YYPOPSTACK; \
- goto yybackup; \
- } \
- else \
- { yyerror ("syntax error: cannot back up"); YYERROR; } \
- while (0)
-
- #define YYTERROR 1
- #define YYERRCODE 256
-
- #ifndef YYPURE
- #define YYLEX yylex()
- #endif
-
- #ifdef YYPURE
- #ifdef YYLSP_NEEDED
- #define YYLEX yylex(&yylval, &yylloc)
- #else
- #define YYLEX yylex(&yylval)
- #endif
- #endif
-
- /* If nonreentrant, generate the variables here */
-
- #ifndef YYPURE
-
- int yychar; /* the lookahead symbol */
- YYSTYPE yylval; /* the semantic value of the */
- /* lookahead symbol */
-
- #ifdef YYLSP_NEEDED
- YYLTYPE yylloc; /* location data for the lookahead */
- /* symbol */
- #endif
-
- int yynerrs; /* number of parse errors so far */
- #endif /* not YYPURE */
-
- #if YYDEBUG != 0
- int yydebug; /* nonzero means print parse trace */
- /* Since this is uninitialized, it does not stop multiple parsers
- from coexisting. */
- #endif
-
- /* YYINITDEPTH indicates the initial size of the parser's stacks */
-
- #ifndef YYINITDEPTH
- #define YYINITDEPTH 200
- #endif
-
- /* YYMAXDEPTH is the maximum size the stacks can grow to
- (effective only if the built-in stack extension method is used). */
-
- #if YYMAXDEPTH == 0
- #undef YYMAXDEPTH
- #endif
-
- #ifndef YYMAXDEPTH
- #define YYMAXDEPTH 10000
- #endif
-
- /* Prevent warning if -Wstrict-prototypes. */
- #ifdef __GNUC__
- int yyparse (void);
- #endif
-
- #if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
- #define __yy_bcopy(FROM,TO,COUNT) __builtin_memcpy(TO,FROM,COUNT)
- #else /* not GNU C or C++ */
- #ifndef __cplusplus
-
- /* This is the most reliable way to avoid incompatibilities
- in available built-in functions on various systems. */
- static void
- __yy_bcopy (from, to, count)
- char *from;
- char *to;
- int count;
- {
- register char *f = from;
- register char *t = to;
- register int i = count;
-
- while (i-- > 0)
- *t++ = *f++;
- }
-
- #else /* __cplusplus */
-
- /* This is the most reliable way to avoid incompatibilities
- in available built-in functions on various systems. */
- static void
- __yy_bcopy (char *from, char *to, int count)
- {
- register char *f = from;
- register char *t = to;
- register int i = count;
-
- while (i-- > 0)
- *t++ = *f++;
- }
-
- #endif
- #endif
-
- #line 184 "/usr/unsupported/lib/bison.simple"
- int
- yyparse()
- {
- register int yystate;
- register int yyn;
- register short *yyssp;
- register YYSTYPE *yyvsp;
- int yyerrstatus; /* number of tokens to shift before error messages enabled */
- int yychar1 = 0; /* lookahead token as an internal (translated) token number */
-
- short yyssa[YYINITDEPTH]; /* the state stack */
- YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */
-
- short *yyss = yyssa; /* refer to the stacks thru separate pointers */
- YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */
-
- #ifdef YYLSP_NEEDED
- YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */
- YYLTYPE *yyls = yylsa;
- YYLTYPE *yylsp;
-
- #define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
- #else
- #define YYPOPSTACK (yyvsp--, yyssp--)
- #endif
-
- int yystacksize = YYINITDEPTH;
-
- #ifdef YYPURE
- int yychar;
- YYSTYPE yylval;
- int yynerrs;
- #ifdef YYLSP_NEEDED
- YYLTYPE yylloc;
- #endif
- #endif
-
- YYSTYPE yyval; /* the variable used to return */
- /* semantic values from the action */
- /* routines */
-
- int yylen;
-
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Starting parse\n");
- #endif
-
- yystate = 0;
- yyerrstatus = 0;
- yynerrs = 0;
- yychar = YYEMPTY; /* Cause a token to be read. */
-
- /* Initialize stack pointers.
- Waste one element of value and location stack
- so that they stay on the same level as the state stack.
- The wasted elements are never initialized. */
-
- yyssp = yyss - 1;
- yyvsp = yyvs;
- #ifdef YYLSP_NEEDED
- yylsp = yyls;
- #endif
-
- /* Push a new state, which is found in yystate . */
- /* In all cases, when you get here, the value and location stacks
- have just been pushed. so pushing a state here evens the stacks. */
- yynewstate:
-
- *++yyssp = yystate;
-
- if (yyssp >= yyss + yystacksize - 1)
- {
- /* Give user a chance to reallocate the stack */
- /* Use copies of these so that the &'s don't force the real ones into memory. */
- YYSTYPE *yyvs1 = yyvs;
- short *yyss1 = yyss;
- #ifdef YYLSP_NEEDED
- YYLTYPE *yyls1 = yyls;
- #endif
-
- /* Get the current used size of the three stacks, in elements. */
- int size = yyssp - yyss + 1;
-
- #ifdef yyoverflow
- /* Each stack pointer address is followed by the size of
- the data in use in that stack, in bytes. */
- #ifdef YYLSP_NEEDED
- /* This used to be a conditional around just the two extra args,
- but that might be undefined if yyoverflow is a macro. */
- yyoverflow("parser stack overflow",
- &yyss1, size * sizeof (*yyssp),
- &yyvs1, size * sizeof (*yyvsp),
- &yyls1, size * sizeof (*yylsp),
- &yystacksize);
- #else
- yyoverflow("parser stack overflow",
- &yyss1, size * sizeof (*yyssp),
- &yyvs1, size * sizeof (*yyvsp),
- &yystacksize);
- #endif
-
- yyss = yyss1; yyvs = yyvs1;
- #ifdef YYLSP_NEEDED
- yyls = yyls1;
- #endif
- #else /* no yyoverflow */
- /* Extend the stack our own way. */
- if (yystacksize >= YYMAXDEPTH)
- {
- yyerror("parser stack overflow");
- return 2;
- }
- yystacksize *= 2;
- if (yystacksize > YYMAXDEPTH)
- yystacksize = YYMAXDEPTH;
- yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
- __yy_bcopy ((char *)yyss1, (char *)yyss, size * sizeof (*yyssp));
- yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
- __yy_bcopy ((char *)yyvs1, (char *)yyvs, size * sizeof (*yyvsp));
- #ifdef YYLSP_NEEDED
- yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
- __yy_bcopy ((char *)yyls1, (char *)yyls, size * sizeof (*yylsp));
- #endif
- #endif /* no yyoverflow */
-
- yyssp = yyss + size - 1;
- yyvsp = yyvs + size - 1;
- #ifdef YYLSP_NEEDED
- yylsp = yyls + size - 1;
- #endif
-
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Stack size increased to %d\n", yystacksize);
- #endif
-
- if (yyssp >= yyss + yystacksize - 1)
- YYABORT;
- }
-
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Entering state %d\n", yystate);
- #endif
-
- goto yybackup;
- yybackup:
-
- /* Do appropriate processing given the current state. */
- /* Read a lookahead token if we need one and don't already have one. */
- /* yyresume: */
-
- /* First try to decide what to do without reference to lookahead token. */
-
- yyn = yypact[yystate];
- if (yyn == YYFLAG)
- goto yydefault;
-
- /* Not known => get a lookahead token if don't already have one. */
-
- /* yychar is either YYEMPTY or YYEOF
- or a valid token in external form. */
-
- if (yychar == YYEMPTY)
- {
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Reading a token: ");
- #endif
- yychar = YYLEX;
- }
-
- /* Convert token to internal form (in yychar1) for indexing tables with */
-
- if (yychar <= 0) /* This means end of input. */
- {
- yychar1 = 0;
- yychar = YYEOF; /* Don't call YYLEX any more */
-
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Now at end of input.\n");
- #endif
- }
- else
- {
- yychar1 = YYTRANSLATE(yychar);
-
- #if YYDEBUG != 0
- if (yydebug)
- {
- fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
- /* Give the individual parser a way to print the precise meaning
- of a token, for further debugging info. */
- #ifdef YYPRINT
- YYPRINT (stderr, yychar, yylval);
- #endif
- fprintf (stderr, ")\n");
- }
- #endif
- }
-
- yyn += yychar1;
- if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
- goto yydefault;
-
- yyn = yytable[yyn];
-
- /* yyn is what to do for this token type in this state.
- Negative => reduce, -yyn is rule number.
- Positive => shift, yyn is new state.
- New state is final state => don't bother to shift,
- just return success.
- 0, or most negative number => error. */
-
- if (yyn < 0)
- {
- if (yyn == YYFLAG)
- goto yyerrlab;
- yyn = -yyn;
- goto yyreduce;
- }
- else if (yyn == 0)
- goto yyerrlab;
-
- if (yyn == YYFINAL)
- YYACCEPT;
-
- /* Shift the lookahead token. */
-
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
- #endif
-
- /* Discard the token being shifted unless it is eof. */
- if (yychar != YYEOF)
- yychar = YYEMPTY;
-
- *++yyvsp = yylval;
- #ifdef YYLSP_NEEDED
- *++yylsp = yylloc;
- #endif
-
- /* count tokens shifted since error; after three, turn off error status. */
- if (yyerrstatus) yyerrstatus--;
-
- yystate = yyn;
- goto yynewstate;
-
- /* Do the default action for the current state. */
- yydefault:
-
- yyn = yydefact[yystate];
- if (yyn == 0)
- goto yyerrlab;
-
- /* Do a reduction. yyn is the number of a rule to reduce with. */
- yyreduce:
- yylen = yyr2[yyn];
- if (yylen > 0)
- yyval = yyvsp[1-yylen]; /* implement default value of the action */
-
- #if YYDEBUG != 0
- if (yydebug)
- {
- int i;
-
- fprintf (stderr, "Reducing via rule %d (line %d), ",
- yyn, yyrline[yyn]);
-
- /* Print the symbols being reduced, and their result. */
- for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
- fprintf (stderr, "%s ", yytname[yyrhs[i]]);
- fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
- }
- #endif
-
-
- switch (yyn) {
-
- case 5:
- #line 126 "./ldgram.y"
- { ldlex_defsym(); ;
- break;}
- case 6:
- #line 128 "./ldgram.y"
- {
- ldlex_popstate();
- lang_add_assignment(exp_assop(yyvsp[-1].token,yyvsp[-2].name,yyvsp[0].etree));
- ;
- break;}
- case 7:
- #line 135 "./ldgram.y"
- { ldlex_mri_script();
- PUSH_ERROR("MRI style script");
- ;
- break;}
- case 8:
- #line 139 "./ldgram.y"
- { ldlex_popstate();
- POP_ERROR();
- ;
- break;}
- case 13:
- #line 152 "./ldgram.y"
- {
- einfo("%P%F: unrecognised keyword in MRI style script '%s'\n",yyvsp[0].name);
- ;
- break;}
- case 14:
- #line 155 "./ldgram.y"
- {
- config.map_filename = "-";
- ;
- break;}
- case 17:
- #line 161 "./ldgram.y"
- { mri_public(yyvsp[-2].name, yyvsp[0].etree); ;
- break;}
- case 18:
- #line 163 "./ldgram.y"
- { mri_public(yyvsp[-2].name, yyvsp[0].etree); ;
- break;}
- case 19:
- #line 165 "./ldgram.y"
- { mri_public(yyvsp[-1].name, yyvsp[0].etree); ;
- break;}
- case 20:
- #line 167 "./ldgram.y"
- { mri_format(yyvsp[0].name); ;
- break;}
- case 21:
- #line 169 "./ldgram.y"
- { mri_output_section(yyvsp[-2].name, yyvsp[0].etree);;
- break;}
- case 22:
- #line 171 "./ldgram.y"
- { mri_output_section(yyvsp[-1].name, yyvsp[0].etree);;
- break;}
- case 23:
- #line 173 "./ldgram.y"
- { mri_output_section(yyvsp[-2].name, yyvsp[0].etree);;
- break;}
- case 24:
- #line 175 "./ldgram.y"
- { mri_align(yyvsp[-2].name,yyvsp[0].etree); ;
- break;}
- case 25:
- #line 177 "./ldgram.y"
- { mri_alignmod(yyvsp[-2].name,yyvsp[0].etree); ;
- break;}
- case 28:
- #line 181 "./ldgram.y"
- { mri_name(yyvsp[0].name); ;
- break;}
- case 29:
- #line 183 "./ldgram.y"
- { mri_alias(yyvsp[-2].name,yyvsp[0].name,0);;
- break;}
- case 30:
- #line 185 "./ldgram.y"
- { mri_alias(yyvsp[-2].name,0,(int) yyvsp[0].integer);;
- break;}
- case 31:
- #line 187 "./ldgram.y"
- { mri_base(yyvsp[0].etree); ;
- break;}
- case 32:
- #line 189 "./ldgram.y"
- { mri_truncate((unsigned int) yyvsp[0].integer); ;
- break;}
- case 34:
- #line 194 "./ldgram.y"
- { mri_order(yyvsp[0].name); ;
- break;}
- case 35:
- #line 195 "./ldgram.y"
- { mri_order(yyvsp[0].name); ;
- break;}
- case 37:
- #line 201 "./ldgram.y"
- { mri_load(yyvsp[0].name); ;
- break;}
- case 38:
- #line 202 "./ldgram.y"
- { mri_load(yyvsp[0].name); ;
- break;}
- case 39:
- #line 207 "./ldgram.y"
- { mri_only_load(yyvsp[0].name); ;
- break;}
- case 40:
- #line 209 "./ldgram.y"
- { mri_only_load(yyvsp[0].name); ;
- break;}
- case 41:
- #line 213 "./ldgram.y"
- {
- ldlex_both();
- ;
- break;}
- case 42:
- #line 217 "./ldgram.y"
- {
- ldlex_popstate();
- ;
- break;}
- case 53:
- #line 240 "./ldgram.y"
- { lang_add_target(yyvsp[-1].name); ;
- break;}
- case 54:
- #line 242 "./ldgram.y"
- { ldfile_add_library_path (yyvsp[-1].name, false); ;
- break;}
- case 55:
- #line 244 "./ldgram.y"
- { lang_add_output(yyvsp[-1].name, 1); ;
- break;}
- case 56:
- #line 246 "./ldgram.y"
- { lang_add_output_format (yyvsp[-1].name, (char *) NULL,
- (char *) NULL, 1); ;
- break;}
- case 57:
- #line 249 "./ldgram.y"
- { lang_add_output_format (yyvsp[-5].name, yyvsp[-3].name, yyvsp[-1].name, 1); ;
- break;}
- case 58:
- #line 251 "./ldgram.y"
- { ldfile_set_output_arch(yyvsp[-1].name); ;
- break;}
- case 59:
- #line 253 "./ldgram.y"
- { command_line.force_common_definition = true ; ;
- break;}
- case 61:
- #line 256 "./ldgram.y"
- { lang_enter_group (); ;
- break;}
- case 62:
- #line 258 "./ldgram.y"
- { lang_leave_group (); ;
- break;}
- case 63:
- #line 260 "./ldgram.y"
- { lang_add_map(yyvsp[-1].name); ;
- break;}
- case 64:
- #line 262 "./ldgram.y"
- { ldfile_open_command_file(yyvsp[0].name); ;
- break;}
- case 66:
- #line 267 "./ldgram.y"
- { lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
- (char *)NULL); ;
- break;}
- case 67:
- #line 270 "./ldgram.y"
- { lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
- (char *)NULL); ;
- break;}
- case 68:
- #line 273 "./ldgram.y"
- { lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
- (char *)NULL); ;
- break;}
- case 73:
- #line 289 "./ldgram.y"
- { lang_add_entry (yyvsp[-1].name, 0); ;
- break;}
- case 75:
- #line 295 "./ldgram.y"
- { lang_add_wild(yyvsp[0].name, current_file); ;
- break;}
- case 76:
- #line 297 "./ldgram.y"
- { lang_add_wild(yyvsp[0].name, current_file); ;
- break;}
- case 77:
- #line 302 "./ldgram.y"
- {
- lang_add_wild((char *)NULL, yyvsp[0].name);
- ;
- break;}
- case 78:
- #line 306 "./ldgram.y"
- {
- current_file = (char *)NULL;
- ;
- break;}
- case 80:
- #line 312 "./ldgram.y"
- {
- current_file =yyvsp[0].name;
- ;
- break;}
- case 82:
- #line 317 "./ldgram.y"
- {
- current_file = (char *)NULL;
- ;
- break;}
- case 85:
- #line 326 "./ldgram.y"
- {
- lang_add_attribute(lang_object_symbols_statement_enum);
- ;
- break;}
- case 87:
- #line 331 "./ldgram.y"
- {
-
- lang_add_attribute(lang_constructors_statement_enum);
- ;
- break;}
- case 89:
- #line 337 "./ldgram.y"
- {
- lang_add_data((int) yyvsp[-3].integer,yyvsp[-1].etree);
- ;
- break;}
- case 90:
- #line 342 "./ldgram.y"
- {
- lang_add_fill
- (exp_get_value_int(yyvsp[-1].etree,
- 0,
- "fill value",
- lang_first_phase_enum));
- ;
- break;}
- case 95:
- #line 363 "./ldgram.y"
- { yyval.integer = yyvsp[0].token; ;
- break;}
- case 96:
- #line 365 "./ldgram.y"
- { yyval.integer = yyvsp[0].token; ;
- break;}
- case 97:
- #line 367 "./ldgram.y"
- { yyval.integer = yyvsp[0].token; ;
- break;}
- case 98:
- #line 369 "./ldgram.y"
- { yyval.integer = yyvsp[0].token; ;
- break;}
- case 99:
- #line 374 "./ldgram.y"
- {
- yyval.integer = exp_get_value_int(yyvsp[0].etree,
- 0,
- "fill value",
- lang_first_phase_enum);
- ;
- break;}
- case 100:
- #line 380 "./ldgram.y"
- { yyval.integer = 0; ;
- break;}
- case 101:
- #line 387 "./ldgram.y"
- { yyval.token = '+'; ;
- break;}
- case 102:
- #line 389 "./ldgram.y"
- { yyval.token = '-'; ;
- break;}
- case 103:
- #line 391 "./ldgram.y"
- { yyval.token = '*'; ;
- break;}
- case 104:
- #line 393 "./ldgram.y"
- { yyval.token = '/'; ;
- break;}
- case 105:
- #line 395 "./ldgram.y"
- { yyval.token = LSHIFT; ;
- break;}
- case 106:
- #line 397 "./ldgram.y"
- { yyval.token = RSHIFT; ;
- break;}
- case 107:
- #line 399 "./ldgram.y"
- { yyval.token = '&'; ;
- break;}
- case 108:
- #line 401 "./ldgram.y"
- { yyval.token = '|'; ;
- break;}
- case 111:
- #line 411 "./ldgram.y"
- {
- lang_add_assignment (exp_assop (yyvsp[-1].token, yyvsp[-2].name, yyvsp[0].etree));
- ;
- break;}
- case 112:
- #line 415 "./ldgram.y"
- {
- lang_add_assignment (exp_assop ('=', yyvsp[-2].name,
- exp_binop (yyvsp[-1].token,
- exp_nameop (NAME,
- yyvsp[-2].name),
- yyvsp[0].etree)));
- ;
- break;}
- case 113:
- #line 423 "./ldgram.y"
- {
- lang_add_assignment (exp_provide (yyvsp[-3].name, yyvsp[-1].etree));
- ;
- break;}
- case 120:
- #line 445 "./ldgram.y"
- { region = lang_memory_region_lookup(yyvsp[0].name); ;
- break;}
- case 122:
- #line 451 "./ldgram.y"
- { region->current =
- region->origin =
- exp_get_vma(yyvsp[0].etree, 0L,"origin", lang_first_phase_enum);
- ;
- break;}
- case 123:
- #line 457 "./ldgram.y"
- { region->length = exp_get_vma(yyvsp[0].etree,
- ~((bfd_vma)0),
- "length",
- lang_first_phase_enum);
- ;
- break;}
- case 124:
- #line 466 "./ldgram.y"
- {
- lang_set_flags(®ion->flags, yyvsp[-1].name);
- ;
- break;}
- case 126:
- #line 475 "./ldgram.y"
- { lang_startup(yyvsp[-1].name); ;
- break;}
- case 128:
- #line 481 "./ldgram.y"
- { ldemul_hll((char *)NULL); ;
- break;}
- case 129:
- #line 486 "./ldgram.y"
- { ldemul_hll(yyvsp[0].name); ;
- break;}
- case 130:
- #line 488 "./ldgram.y"
- { ldemul_hll(yyvsp[0].name); ;
- break;}
- case 132:
- #line 496 "./ldgram.y"
- { ldemul_syslib(yyvsp[0].name); ;
- break;}
- case 134:
- #line 502 "./ldgram.y"
- { lang_float(true); ;
- break;}
- case 135:
- #line 504 "./ldgram.y"
- { lang_float(false); ;
- break;}
- case 136:
- #line 508 "./ldgram.y"
- { ldlex_expression(); ;
- break;}
- case 137:
- #line 510 "./ldgram.y"
- { ldlex_popstate(); yyval.etree=yyvsp[0].etree;;
- break;}
- case 138:
- #line 515 "./ldgram.y"
- { yyval.etree = exp_unop('-', yyvsp[0].etree); ;
- break;}
- case 139:
- #line 517 "./ldgram.y"
- { yyval.etree = yyvsp[-1].etree; ;
- break;}
- case 140:
- #line 519 "./ldgram.y"
- { yyval.etree = exp_unop((int) yyvsp[-3].integer,yyvsp[-1].etree); ;
- break;}
- case 141:
- #line 521 "./ldgram.y"
- { yyval.etree = exp_unop('!', yyvsp[0].etree); ;
- break;}
- case 142:
- #line 523 "./ldgram.y"
- { yyval.etree = yyvsp[0].etree; ;
- break;}
- case 143:
- #line 525 "./ldgram.y"
- { yyval.etree = exp_unop('~', yyvsp[0].etree);;
- break;}
- case 144:
- #line 528 "./ldgram.y"
- { yyval.etree = exp_binop('*', yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 145:
- #line 530 "./ldgram.y"
- { yyval.etree = exp_binop('/', yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 146:
- #line 532 "./ldgram.y"
- { yyval.etree = exp_binop('%', yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 147:
- #line 534 "./ldgram.y"
- { yyval.etree = exp_binop('+', yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 148:
- #line 536 "./ldgram.y"
- { yyval.etree = exp_binop('-' , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 149:
- #line 538 "./ldgram.y"
- { yyval.etree = exp_binop(LSHIFT , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 150:
- #line 540 "./ldgram.y"
- { yyval.etree = exp_binop(RSHIFT , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 151:
- #line 542 "./ldgram.y"
- { yyval.etree = exp_binop(EQ , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 152:
- #line 544 "./ldgram.y"
- { yyval.etree = exp_binop(NE , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 153:
- #line 546 "./ldgram.y"
- { yyval.etree = exp_binop(LE , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 154:
- #line 548 "./ldgram.y"
- { yyval.etree = exp_binop(GE , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 155:
- #line 550 "./ldgram.y"
- { yyval.etree = exp_binop('<' , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 156:
- #line 552 "./ldgram.y"
- { yyval.etree = exp_binop('>' , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 157:
- #line 554 "./ldgram.y"
- { yyval.etree = exp_binop('&' , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 158:
- #line 556 "./ldgram.y"
- { yyval.etree = exp_binop('^' , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 159:
- #line 558 "./ldgram.y"
- { yyval.etree = exp_binop('|' , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 160:
- #line 560 "./ldgram.y"
- { yyval.etree = exp_trinop('?' , yyvsp[-4].etree, yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 161:
- #line 562 "./ldgram.y"
- { yyval.etree = exp_binop(ANDAND , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 162:
- #line 564 "./ldgram.y"
- { yyval.etree = exp_binop(OROR , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 163:
- #line 566 "./ldgram.y"
- { yyval.etree = exp_nameop(DEFINED, yyvsp[-1].name); ;
- break;}
- case 164:
- #line 568 "./ldgram.y"
- { yyval.etree = exp_intop(yyvsp[0].integer); ;
- break;}
- case 165:
- #line 570 "./ldgram.y"
- { yyval.etree = exp_nameop(SIZEOF_HEADERS,0); ;
- break;}
- case 166:
- #line 573 "./ldgram.y"
- { yyval.etree = exp_nameop(SIZEOF,yyvsp[-1].name); ;
- break;}
- case 167:
- #line 575 "./ldgram.y"
- { yyval.etree = exp_nameop(ADDR,yyvsp[-1].name); ;
- break;}
- case 168:
- #line 577 "./ldgram.y"
- { yyval.etree = exp_unop(ABSOLUTE, yyvsp[-1].etree); ;
- break;}
- case 169:
- #line 579 "./ldgram.y"
- { yyval.etree = exp_unop(ALIGN_K,yyvsp[-1].etree); ;
- break;}
- case 170:
- #line 581 "./ldgram.y"
- { yyval.etree = exp_unop(ALIGN_K,yyvsp[-1].etree); ;
- break;}
- case 171:
- #line 583 "./ldgram.y"
- { yyval.etree = exp_nameop(NAME,yyvsp[0].name); ;
- break;}
- case 172:
- #line 588 "./ldgram.y"
- { yyval.etree = yyvsp[-1].etree; ;
- break;}
- case 173:
- #line 589 "./ldgram.y"
- { yyval.etree = 0; ;
- break;}
- case 174:
- #line 592 "./ldgram.y"
- { ldlex_expression(); ;
- break;}
- case 175:
- #line 594 "./ldgram.y"
- { ldlex_popstate(); ;
- break;}
- case 176:
- #line 596 "./ldgram.y"
- {
- lang_enter_output_section_statement(yyvsp[-5].name,yyvsp[-3].etree,typebits,0,0,0,yyvsp[-2].etree);
- ;
- break;}
- case 177:
- #line 600 "./ldgram.y"
- {ldlex_expression();;
- break;}
- case 178:
- #line 601 "./ldgram.y"
- {
- ldlex_popstate();
- lang_leave_output_section_statement(yyvsp[0].integer, yyvsp[-1].name);
- ;
- break;}
- case 180:
- #line 610 "./ldgram.y"
- { typebits = SEC_NEVER_LOAD; ;
- break;}
- case 181:
- #line 611 "./ldgram.y"
- { typebits = 0; ;
- break;}
- case 182:
- #line 612 "./ldgram.y"
- { typebits = 0; ;
- break;}
- case 183:
- #line 613 "./ldgram.y"
- { typebits = 0; ;
- break;}
- case 184:
- #line 614 "./ldgram.y"
- { typebits = 0; ;
- break;}
- case 185:
- #line 615 "./ldgram.y"
- { typebits = SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS; ;
- break;}
- case 186:
- #line 620 "./ldgram.y"
- { yyval.etree = yyvsp[-1].etree; typebits =0;;
- break;}
- case 187:
- #line 621 "./ldgram.y"
- { yyval.etree = yyvsp[-4].etree; ;
- break;}
- case 188:
- #line 622 "./ldgram.y"
- { yyval.etree= (etree_type *)NULL; typebits = 0; ;
- break;}
- case 189:
- #line 623 "./ldgram.y"
- { yyval.etree= (etree_type *)NULL; ;
- break;}
- case 190:
- #line 628 "./ldgram.y"
- { yyval.name = yyvsp[0].name; ;
- break;}
- case 191:
- #line 629 "./ldgram.y"
- { yyval.name = "*default*"; ;
- break;}
- }
- /* the action file gets copied in in place of this dollarsign */
- #line 465 "/usr/unsupported/lib/bison.simple"
-
- yyvsp -= yylen;
- yyssp -= yylen;
- #ifdef YYLSP_NEEDED
- yylsp -= yylen;
- #endif
-
- #if YYDEBUG != 0
- if (yydebug)
- {
- short *ssp1 = yyss - 1;
- fprintf (stderr, "state stack now");
- while (ssp1 != yyssp)
- fprintf (stderr, " %d", *++ssp1);
- fprintf (stderr, "\n");
- }
- #endif
-
- *++yyvsp = yyval;
-
- #ifdef YYLSP_NEEDED
- yylsp++;
- if (yylen == 0)
- {
- yylsp->first_line = yylloc.first_line;
- yylsp->first_column = yylloc.first_column;
- yylsp->last_line = (yylsp-1)->last_line;
- yylsp->last_column = (yylsp-1)->last_column;
- yylsp->text = 0;
- }
- else
- {
- yylsp->last_line = (yylsp+yylen-1)->last_line;
- yylsp->last_column = (yylsp+yylen-1)->last_column;
- }
- #endif
-
- /* Now "shift" the result of the reduction.
- Determine what state that goes to,
- based on the state we popped back to
- and the rule number reduced by. */
-
- yyn = yyr1[yyn];
-
- yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
- if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
- yystate = yytable[yystate];
- else
- yystate = yydefgoto[yyn - YYNTBASE];
-
- goto yynewstate;
-
- yyerrlab: /* here on detecting error */
-
- if (! yyerrstatus)
- /* If not already recovering from an error, report this error. */
- {
- ++yynerrs;
-
- #ifdef YYERROR_VERBOSE
- yyn = yypact[yystate];
-
- if (yyn > YYFLAG && yyn < YYLAST)
- {
- int size = 0;
- char *msg;
- int x, count;
-
- count = 0;
- /* Start X at -yyn if nec to avoid negative indexes in yycheck. */
- for (x = (yyn < 0 ? -yyn : 0);
- x < (sizeof(yytname) / sizeof(char *)); x++)
- if (yycheck[x + yyn] == x)
- size += strlen(yytname[x]) + 15, count++;
- msg = (char *) malloc(size + 15);
- if (msg != 0)
- {
- strcpy(msg, "parse error");
-
- if (count < 5)
- {
- count = 0;
- for (x = (yyn < 0 ? -yyn : 0);
- x < (sizeof(yytname) / sizeof(char *)); x++)
- if (yycheck[x + yyn] == x)
- {
- strcat(msg, count == 0 ? ", expecting `" : " or `");
- strcat(msg, yytname[x]);
- strcat(msg, "'");
- count++;
- }
- }
- yyerror(msg);
- free(msg);
- }
- else
- yyerror ("parse error; also virtual memory exceeded");
- }
- else
- #endif /* YYERROR_VERBOSE */
- yyerror("parse error");
- }
-
- goto yyerrlab1;
- yyerrlab1: /* here on error raised explicitly by an action */
-
- if (yyerrstatus == 3)
- {
- /* if just tried and failed to reuse lookahead token after an error, discard it. */
-
- /* return failure if at end of input */
- if (yychar == YYEOF)
- YYABORT;
-
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
- #endif
-
- yychar = YYEMPTY;
- }
-
- /* Else will try to reuse lookahead token
- after shifting the error token. */
-
- yyerrstatus = 3; /* Each real token shifted decrements this */
-
- goto yyerrhandle;
-
- yyerrdefault: /* current state does not do anything special for the error token. */
-
- #if 0
- /* This is wrong; only states that explicitly want error tokens
- should shift them. */
- yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/
- if (yyn) goto yydefault;
- #endif
-
- yyerrpop: /* pop the current state because it cannot handle the error token */
-
- if (yyssp == yyss) YYABORT;
- yyvsp--;
- yystate = *--yyssp;
- #ifdef YYLSP_NEEDED
- yylsp--;
- #endif
-
- #if YYDEBUG != 0
- if (yydebug)
- {
- short *ssp1 = yyss - 1;
- fprintf (stderr, "Error: state stack now");
- while (ssp1 != yyssp)
- fprintf (stderr, " %d", *++ssp1);
- fprintf (stderr, "\n");
- }
- #endif
-
- yyerrhandle:
-
- yyn = yypact[yystate];
- if (yyn == YYFLAG)
- goto yyerrdefault;
-
- yyn += YYTERROR;
- if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
- goto yyerrdefault;
-
- yyn = yytable[yyn];
- if (yyn < 0)
- {
- if (yyn == YYFLAG)
- goto yyerrpop;
- yyn = -yyn;
- goto yyreduce;
- }
- else if (yyn == 0)
- goto yyerrpop;
-
- if (yyn == YYFINAL)
- YYACCEPT;
-
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Shifting error token, ");
- #endif
-
- *++yyvsp = yylval;
- #ifdef YYLSP_NEEDED
- *++yylsp = yylloc;
- #endif
-
- yystate = yyn;
- goto yynewstate;
- }
- #line 631 "./ldgram.y"
-
- void
- yyerror(arg)
- const char *arg;
- {
- if (ldfile_assumed_script)
- einfo ("%P:%s: file format not recognized; treating as linker script\n",
- ldfile_input_filename);
- if (error_index > 0 && error_index < ERROR_NAME_MAX)
- einfo ("%P%F:%S: %s in %s\n", arg, error_names[error_index-1]);
- else
- einfo ("%P%F:%S: %s\n", arg);
- }
-